#PROJECT(CallManager)
#cmake_minimum_required(VERSION 2.8)
#include_directories(./ ../../../boost_1_40_0/)
cmake_minimum_required( VERSION 2.6 FATAL_ERROR )
PROJECT(boost_space)

set(BOOST_INCLUDEDIR "F:\google_workspace\boost_1_40_0")
set(BOOST_LIBRARYDIR "F:/google_workspace/boost_1_40_0/vc_build/lib")
set(Boost_FIND_VERSION_EXACT TRUE)
set(Boost_Debug TRUE)
#set(Boost_ADDITIONAL_VERSIONS "1.40" "1.40.0")

include(FindBoost)
find_package(Boost 1.40.0 COMPONENTS thread asio system)

#INCLUDE(FindBoost)
# search for Boost version 1.40
#find_package( Boost 1.40 COMPONENTS asio system thread)
#find_package( Boost )
#link_directories ( ${Boost_LIBRARY_DIRS} )
link_directories ( ${BOOST_LIBRARYDIR} )
#if(Boost_FOUND)
message(STATUS "BOOST found!")
include_directories(${Boost_INCLUDE_DIRS} ./)
AUX_SOURCE_DIRECTORY(. DIR_SRCS)

add_executable (boost_space ${DIR_SRCS})      
target_link_libraries (boost_space ${Boost_LIBRARIES} )
target_link_libraries (boost_space Ws2_32)
#endif()